//
//  ZYSocketRequest.h
//  ZYWebImage
//
//  Created by wangzhipan on 2025/5/2.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

// 定义读写请求结构
@interface ZYSocketRequest : NSObject
@property (nonatomic, strong) NSData *data;           // 写入数据或读取的数据
@property (nonatomic, assign) NSTimeInterval timeout; // 操作超时时间
@property (nonatomic, strong) NSDate *startTime;      // 操作开始时间
@property (nonatomic, assign) size_t bytesDone;       // 已完成的字节数
@property (nonatomic, assign) size_t bytesTotal;      // 总字节数
@property (nonatomic, copy) void (^completion)(NSData *data, NSError *error); // 完成回调
@end

NS_ASSUME_NONNULL_END
